﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using PhoneMap.ViewModel;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Diagnostics;

namespace PhoneMap.Controls
{
    public partial class PushPinControl : UserControl
    {
        public PushPinControl(string avatar,string userId)
        {
            InitializeComponent();
            Avatar.Fill = new ImageBrush() { ImageSource = new BitmapImage(new Uri(avatar, UriKind.Absolute)) { CreateOptions = BitmapCreateOptions.None } };
        }
        private void LayoutRoot_Tap(object sender, System.Windows.Input.GestureEventArgs e)
        {
            MessageBox.Show("Hello Em Yeu");
        }
    }
}
